package com.lsh.payment.core.common;

import com.lsh.payment.core.service.async.IEventListener;
import com.lsh.payment.core.service.email.MailSenderTemplate;
import com.lsh.payment.core.service.payment.IPayChannelService;
import org.springframework.context.annotation.Bean;
import org.springframework.mail.MailSender;
import org.springframework.mail.javamail.JavaMailSender;

import static org.easymock.EasyMock.createMock;

public class MockBeans {

    @Bean
    public JavaMailSender javaMailSender() {
        return createMock(JavaMailSender.class);
    }

    @Bean
    public MailSender mailSender() {
        return createMock(MailSender.class);
    }

    @Bean
    public MailSenderTemplate mailSenderTemplate() {
        return createMock(MailSenderTemplate.class);
    }

    @Bean
    public IPayChannelService iPayChannelService() {
        return createMock(IPayChannelService.class);
    }

    @Bean
    public IEventListener iEventListener() {
        return createMock(IEventListener.class);
    }


//    @Bean(name = "redisTemplate_w")
//    public RedisTemplate redisTemplate_w() {
//        return createMock(RedisTemplate.class);
//    }
//
//    @Bean(name = "redisTemplate_r")
//    public RedisTemplate redisTemplate_r() {
//        return createMock(RedisTemplate.class);
//    }
//
//    @Bean
//    public RedisHashDao redisHashDao() {
//        return createMock(RedisHashDao.class);
//    }
//
//    @Bean
//    public RedisListDao redisListDao() {
//        return createMock(RedisListDao.class);
//    }
//
//    @Bean
//    public RedisSetDao redisSetDao() {
//        return createMock(RedisSetDao.class);
//    }
//
//    @Bean
//    public RedisSortedSetDao redisSortedSetDao() {
//        return createMock(RedisSortedSetDao.class);
//    }
//
//    @Bean
//    public RedisStringDao redisStringDao() {
//        return createMock(RedisStringDao.class);
//    }
}
